package com.nbsaas.boot.project.data.entity;


import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.FormField;
import com.nbsaas.boot.code.annotation.SearchItem;
import com.nbsaas.boot.jpa.data.entity.LongEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@org.hibernate.annotations.Table(appliesTo = "bs_data_model_item", comment = "业务模型字段")
@Data
@FormAnnotation(model = "业务模型字段")
@Entity
@Table(name = "bs_data_model_item")
public class DataModelField extends LongEntity {

    @Comment("项目ID")
    private Long projectId;

    @SearchItem(label = "字段名称", name = "name")
    @Comment("字段名称")
    @FormField(title = "字段名称", grid = true, width = "200")
    @Column(length = 30)
    private String name;
}
